package com.wyzz.hr.pojo.base;

import java.io.Serializable;
import java.util.Set;

import com.wyzz.hr.base.BaseDomain;
import com.wyzz.hr.pojo.Emptype;

public abstract class BaseEmptype extends BaseDomain implements Serializable {

	public BaseEmptype() {
		hashCode = 0x80000000;
		initialize();
	}

	public BaseEmptype(String id) {
		hashCode = 0x80000000;
		setId(id);
		initialize();
	}

	public BaseEmptype(String id, String emptypeName, Integer emptypeSortId) {
		hashCode = 0x80000000;
		setId(id);
		setEmptypeName(emptypeName);
		setEmptypeSortId(emptypeSortId);
		initialize();
	}

	protected void initialize() {
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
		hashCode = 0x80000000;
	}

	public String getEmptypeName() {
		return emptypeName;
	}

	public void setEmptypeName(String emptypeName) {
		this.emptypeName = emptypeName;
	}

	public String getEmptypeDesc() {
		return emptypeDesc;
	}

	public void setEmptypeDesc(String emptypeDesc) {
		this.emptypeDesc = emptypeDesc;
	}

	public Set getEmpsalaryconfs() {
		return empsalaryconfs;
	}

	public void setEmpsalaryconfs(Set empsalaryconfs) {
		this.empsalaryconfs = empsalaryconfs;
	}

	public Set getEmpsalarypaids() {
		return empsalarypaids;
	}

	public void setEmpsalarypaids(Set empsalarypaids) {
		this.empsalarypaids = empsalarypaids;
	}

	public Set getEmployees() {
		return employees;
	}

	public void setEmployees(Set employees) {
		this.employees = employees;
	}

	public Integer getEmptypeSortId() {
		return emptypeSortId;
	}

	public void setEmptypeSortId(Integer emptypeSortId2) {
		emptypeSortId = emptypeSortId2;
	}

	public boolean equals(Object obj) {
		if (null == obj)
			return false;
		if (!(obj instanceof Emptype))
			return false;
		Emptype emptype = (Emptype) obj;
		if (null == getId() || null == emptype.getId())
			return false;
		else
			return getId().equals(emptype.getId());
	}

	public int hashCode() {
		if (0x80000000 == hashCode) {
			if (null == getId())
				return super.hashCode();
			String hashStr = (new StringBuilder()).append(getClass().getName())
					.append(":").append(getId().hashCode()).toString();
			hashCode = hashStr.hashCode();
		}
		return hashCode;
	}

	public String toString() {
		return super.toString();
	}

	public Integer getEmptypeStatus() {
		return emptypeStatus;
	}

	public void setEmptypeStatus(Integer emptypeStatus) {
		this.emptypeStatus = emptypeStatus;
	}

	public static String REF = "Emptype";
	public static String PROP_EMPTYPE_NAME = "emptypeName";
	public static String PROP_EMPTYPE_DESC = "emptypeDesc";
	public static String PROP_ID = "id";
	public static String PROP_EMPTYPE_SORTID = "emptypeSortId";
	public static String PROP_EMPTYPE_STATUS = "emptypeStatus";
	private int hashCode;
	private String id;
	private String emptypeName;
	private String emptypeDesc;
	private Integer emptypeSortId;
	private Integer emptypeStatus;
	private Set empsalaryconfs;
	private Set empsalarypaids;
	private Set employees;

}
